@layout("/common/_container.html"){
<script src="${ctxPath}/static/js/plugins/echarts/echarts-all.js"></script>
<!-- 为ECharts准备一个具备大小（宽高）的Dom -->

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>事故致因概率预测</h5>
                <div class="ibox-tools">
                </div>
            </div>
            <div class="ibox-content">
                <div id="main" class="echarts"></div>
            </div>
        </div>
    </div>
    </div>

<script type="text/javascript">
    var ajax = new $ax(Feng.ctxPath + "/riskFactor/analyse", function (data) {
        data = JSON.parse(data);
        var myChart = echarts.init(document.getElementById('main'));
        myChart.setOption(data);
        $(window).resize(myChart.resize);
    }, function (data) {
        Feng.error("操作失败!" + data.responseJSON.message + "!");
    });
    ajax.start();

</script>
@}
